What is optional chain in swift iOS ?
2741
13-Jan-2017
Updated on 23-Sep-2020
Sunil Singh
13-Jan-2017The Process of querying and calling properties ,methods and subscripts on an optional that might currently be nil is called optional chaining .If the optional chaining contains a value, the property, method, or subscript call succeeds .Multiple queries can be chained together and if any link in chain is nil then entire chain fails.